package com.ktjy.pojo;

public class Employee {
    public int empNo;
    public String empName;
    public String empPost;
    public double empSalary;

    public int getEmpNo() {
        return empNo;
    }

    public void setEmpNo(int empNo) {
        this.empNo = empNo;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpPost() {
        return empPost;
    }

    public void setEmpPost(String empPost) {
        this.empPost = empPost;
    }

    public double getEmpSalary() {
        return empSalary;
    }

    public void setEmpSalary(double empSalary) {
        this.empSalary = empSalary;
    }
    public Employee(){}

    public Employee(int empNo) {
        this.empNo = empNo;
    }

    public Employee(String empName) {
        this.empName = empName;
    }

    public Employee(double empSalary) {
        this.empSalary = empSalary;
    }

    public Employee(double empSalary, String empPost, String empName, int empNo) {
        this.empSalary = empSalary;
        this.empPost = empPost;
        this.empName = empName;
        this.empNo = empNo;
    }
    public void showInfo(){
        System.out.println("empNo:"+empNo);
        System.out.println("empName:"+empName);
        System.out.println("empPost:"+empPost);
        System.out.println("empSalary:"+empSalary);
    }
}
